<%@ page contentType="text/html;charset=UTF-8" isErrorPage="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page isErrorPage="true" %>
<%@ page import="java.util.*" %>
<%@ page import="java.io.*"%>

<html>
	<head>
		<title>页面访问出错</title> 
	</head>
	<%
	   String errorMsg = (String)request.getAttribute("SYSTEM_ERROR_MSG");
	   String reqPath   = (String)request.getAttribute("REQ_BIZ_PATH");
	%>
	<body>
	<%
		String msg = "";
		try {
			StringWriter wout = new StringWriter();
			PrintWriter pout = new PrintWriter(wout);
			exception.printStackTrace(pout);	
			pout.flush();
			wout.flush();
			msg = wout.getBuffer().toString();
			wout.close();
			pout.close();
		} catch(Exception ex) {
			
		}
		if (msg == null || msg.length() == 0 ) {
		} else {
		    if (errorMsg == null) {
		    	errorMsg =  msg;
		    } else {
		    	errorMsg = errorMsg + msg;
		    }
			
		}
  %>
		<div id="content">
				<div>
					<h3>
						页面访问错误,错误信息:
						<%=errorMsg%>
					</h3>
				</div>
				<div>
					<h3>
						页面提交路径:
						<%=reqPath%>
					</h3>
				</div>
				<div style="display:none">
					<button onclick="history.back();">返回</button> 
					<button onclick="$('#detail_error_msg').toggle();">显示详细信息</button>
				</div>
				<div id="detail_error_msg" style="display: none">
					<pre>
					</pre>
				</div>
			</div>
	</body>
</html>